package org.code.mallspringboot.service.impl;

import org.code.mallspringboot.mapper.PmsProductCategoryAttributeRelationMapper;
import org.code.mallspringboot.service.PmsProductCategoryAttributeRelationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PmsProductCategoryAttributeRelationServiceImpl implements PmsProductCategoryAttributeRelationService {

    @Autowired
    private PmsProductCategoryAttributeRelationMapper pmsProductCategoryAttributeRelationMapper;

    @Override
    public int delete(int id) {
        return pmsProductCategoryAttributeRelationMapper.delete(id);
    }

    @Override
    public int delete_attribute(int productAttributeId) {
        return pmsProductCategoryAttributeRelationMapper.delete_attribute(productAttributeId);
    }

    @Override
    public int addForeach(int productCategoryId, int productAttributeId) {
        return pmsProductCategoryAttributeRelationMapper.addForeach(productCategoryId, productAttributeId);
    }
}
